Allabu Solapi Kakao

Send Kakao Message

Overview

This node sends KakaoTalk messages using the Solapi messaging API. It is designed to facilitate sending templated Kakao messages programmatically, which is useful for businesses or services that want to automate customer notifications, alerts, or marketing messages via KakaoTalk.

Typical use cases include:

  • Sending appointment reminders or confirmations.
  • Delivering promotional messages with dynamic content.
  • Notifying users about transaction statuses or delivery updates.

The node constructs a secure API request with HMAC-SHA256 authentication and sends a message payload to the Solapi endpoint.

Properties

Name Meaning
My String The description text (a string input, default value "allabu")

Note: Although the node has only one user-configurable property ("My String"), it does not appear to be used in the current implementation of the execute() method.

Output

The node outputs JSON data containing information about the message sent. The output structure includes:

{
  "data": "{\"messageId\":\"1234567890\",\"status\":\"success\",\"recipient\":\"01094843852\",\"message\":\"Test message sent successfully\"}"
}
  • messageId: A placeholder ID representing the sent message.
  • status: Indicates success of the message sending operation.
  • recipient: The phone number of the message recipient.
  • message: A confirmation message string.

The output is wrapped inside an array of arrays as per n8n's expected format.

No binary data output is generated by this node.

Dependencies

  • External Service: Solapi Kakao Messaging API (https://api.solapi.com/messages/v4/send-many/detail).
  • Authentication: The node uses HMAC-SHA256 signing with an API key and secret to authenticate requests.
  • Node.js Modules: Uses axios for HTTP requests and crypto for generating random salts and signatures.

Note: The API key and secret are hardcoded in the source code snippet provided, but in practice, these should be securely stored and configured via n8n credentials or environment variables.

Troubleshooting

  • Common Issues:

    • Authentication failures due to incorrect API key/secret or signature generation errors.
    • Network issues preventing connection to the Solapi endpoint.
    • Invalid message payloads causing API rejections.
  • Error Messages:

    • Axios errors will log the error message and, if available, response status, data, and headers.
    • If no response is received, a specific message "No response received from server." is logged.
    • Unexpected errors are also caught and logged.
  • Resolution Tips:

    • Verify API credentials and ensure they are correctly configured.
    • Check network connectivity and firewall settings.
    • Validate message template IDs and variables match those configured in the Solapi dashboard.
    • Review logs for detailed error responses from the API.

Links and References

Discussion